<template>
	<view>
		<button @click="onLog()"> Console.log </button>
		<button @click="onDebug()"> Console.debug </button>
		<button @click="onLog()"> Console.info </button>
		<button @click="onLog()"> Console.warn </button>
		<button @click="onLog()"> Console.error </button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myname:"ljq"
			}
		},
		methods: {
			onLog(){
				console.log("onLog()-->Name: " + this.myname)
			//	console.log("clog+enter");
			console.log("onLog",this.myname);
			console.log('this.myname: ',this.myname);
			},
			
			onDebug(){
				console.debug("onDebug");
			},
			oninfo(){
				console.info("info");
			},
			onwarn(){
				console.warn("onwarn")
				if(true){
					console.log("true");
				}else{
					console.warn("快报错了")
				}
			},
			onerror(){
				console.error("error");
				try{
					
				}catch(e){
					//
				}
			}
			
		}
	}
</script>

<style>

</style>
